const obj ={
    name: '计涛',
    hobby:'篮球',
    sex:'男'
}
// const hobby = obj.hobby; 
// es6提供了优雅的api解构
let {name,hobby}=obj;
console.log(name,hobby);
// let name='123';
// var a=1;
// var a=2;

function introduct(name,hobby){
    console.log(`${name},旅梦的好朋友，大佬，最喜欢的爱好是${hobby}`);
}

introduct(obj);